package ai.people.netmon.framework.domain.userconfig.request;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 数据同步请求实体
 *
 * @author zhenglin
 * @date 2022/3/1
 */
@Data
@NoArgsConstructor
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class SyncDataRequest<T> {
    /**
     * 数据
     */
    private List<T> data;
    /**
     * 信源类别
     */
    private String infoType;

    public SyncDataRequest(List<T> data,String infoType) {
        this.data = data;
        this.infoType = infoType;
    }

}
